namespace TS2015.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;
    using System.Web.Script.Serialization;

    [Table("TbTruong")]
    public partial class TbTruong
    {
        public TbTruong()
        {
            TbThiSinhs = new HashSet<TbThiSinh>();
        }
        [Key]
        public int MaTruong { get; set; }

        [Required]
        [StringLength(50)]
        public string TenTruong { get; set; }

        public int MaTinh { get; set; }
        public ICollection<TbThiSinh> TbThiSinhs { get; set; }

        [ScriptIgnore]
        public TbTinh TbTinh { get; set; }
    }
}
